home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / sco / defs next >
Text File  |  1994-08-01  |  9KB  |  323 lines

  1. #    $Header: /usr/people/sam/fax/port/sco/RCS/defs,v 1.13 1994/04/18 18:47:01 sam Rel $
  2. #
  3. # FlexFAX Facsimile Software
  4. #
  5. # Copyright (c) 1993, 1994 Sam Leffler
  6. # Copyright (c) 1993, 1994 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Sam Leffler and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24.  
  25. #
  26. # These definitions are for building the software on a Intel 386 PC
  27. # under SCO ODT 2.0 using gcc 2.3.3 and libg++2.3.
  28. #
  29. # TARGET:    sco
  30. # COMPILER:    gcc
  31. #
  32. SHELL    = /bin/sh
  33. DESTDIR    = .
  34. NULL    =
  35. MAKEFILE= Makefile
  36.  
  37. #
  38. # Location of auxiliary stuff needed for SCO
  39. #
  40. PORT    = ${DEPTH}/port/sco
  41. GENERIC    = ${DEPTH}/port/generic
  42. #
  43. # Basic tools used in the build process.
  44. #
  45. C++    = /usr/local/bin/g++
  46. CC    = /usr/local/bin/gcc
  47.  
  48. NAWK    = nawk
  49. INSTALL    = sh ${PORT}/install.sh
  50. MKDEPEND= ${GENERIC}/mkdepend
  51. AR    = ar
  52. RANLIB    = echo
  53. SED    = sed
  54.  
  55. #
  56. # AR options for creating/updating an archive
  57. #
  58. AROPTS=    crs
  59.  
  60. #
  61. # Special options for lptops compilation (yech).
  62. #
  63.  
  64. #
  65. # We wants System V-style getty support.
  66. #
  67. SYSGETTY=GettySysV.c++
  68.  
  69. #
  70. # and we want System V-style UUCP lock support.
  71. #
  72. UUCP_LOCKDIR=/usr/spool/uucp
  73. UUCP_LOCKTYPE=0
  74. UUCP_LOCKMODE=0444
  75.  
  76. #
  77. # Location of Adobe Font Metrics for lptops.
  78. #
  79. AFMDIR=/usr/local/lib/ghostscript/fonts
  80.  
  81. #
  82. # PostScript imager for server.  PSPACKAGE is one of:
  83. #
  84. # dps    for Display Postscript
  85. # gs    for Ghostscript
  86. #
  87. # and PSIMAGER is the pathname of the binary executable.
  88. #
  89. PSPACKAGE=gs
  90. PSIMAGER=/usr/local/bin/gs
  91.  
  92. #
  93. # Mail program for sending notification messages.
  94. #
  95. SENDMAIL=/usr/lib/sendmail
  96.  
  97. #
  98. # Default optimizer and prototype options
  99. #
  100. # -g is broken for SCO on g++ 2.3.3
  101. OPTIMIZER= -O
  102. PROTOTYPES=
  103. CVERSION= -D__ANSI_CPP__
  104. C++FILE=-x c++
  105.  
  106. # default definitions for programs--overide them as desired
  107. LIBS=    ${LIBUTIL} ${LIBTIFF} ${LIBIV} ${LIBPORT}
  108. LLDLIBS=${LIBS} ${MACHDEPLIBS}
  109. #
  110. # Override this definition to eliminate shared library use.
  111. #
  112. SHDLIBC=
  113.  
  114. #
  115. # Libraries that may vary from machine to machine (especially if
  116. # you use GNU GCC instead of AT&T C++).
  117. #
  118. MACHDEPLIBS=-lg++ -lsocket -lintl -lx -lc_s
  119. #
  120. # You must have v3.0 or newer of the TIFF library.  If
  121. # you already have it installed, or if you have version 3.0
  122. # or newer of InterViews installed (which includes the TIFF
  123. # library), you can point these to those places.  Otherwise,
  124. # you can just use the code provided here.
  125. #
  126. TIFF=    ${DEPTH}/libtiff
  127. LIBTIFF=${TIFF}/libtiff.a
  128. #
  129. # If you already have InterViews 3.0 or newer installed,
  130. # define these to be something like:
  131. #
  132. #IV=    /usr/include
  133. #LIBIV=    /usr/lib/libIV.a
  134. # Otherwise you can just use the subset of classes used by
  135. # the fax software and collected here in a hacked-up library.
  136. #
  137. IV=    ${DEPTH}/iv
  138. LIBIV=    ${IV}/libivhack.a
  139. # random utility functions and classes
  140. UTIL=    ${DEPTH}/util
  141. LIBUTIL=${UTIL}/libfaxutil.a
  142. LIBPORT=${PORT}/libport.a
  143.  
  144. #
  145. # Uid&Gid for installing server stuff.  Note that the server process
  146. # proper (/usr/etc/faxd or similar) must either run setuid root or
  147. # setuid uucp (i.e. fax and uucp must have the same uid).  This is
  148. # so that the fax server can participate in the UUCP locking scheme
  149. # and thereby implement tty line sharing (i.e. share the same line
  150. # and modem for both fax and data).
  151. #
  152. FAXUSER=uucp
  153. FAXGROUP=uucp
  154.  
  155. #
  156. # Directories where stuff gets placed:
  157. #
  158. # BIN        client-directed applications
  159. # LIBDATA    client-directed application library data files
  160. # LIBEXEC    client-directed application library executables
  161. # SPOOL        spooling area for servers
  162. # DOC        non-manual documentation
  163. # USRETC    place for servers (faxd & faxd.recv)
  164. #
  165. BIN=/usr/local/bin
  166. LIBDATA=/usr/local/lib/fax
  167. LIBEXEC=/usr/local/lib/fax
  168. DOC=/usr/local/lib/fax
  169. USRETC=/usr/local/lib/fax
  170.  
  171. SPOOL=/usr/spool/fax
  172. #
  173. # Manual-related controls:
  174. #
  175. # MAN        head of manual tree
  176. # MANAPP    subdirectory for stuff in BIN
  177. # MANSYS    subdirectory for server & server-related apps
  178. # MANFILES    subdirectory for file format info 
  179. # PAGEDIRT    temp files to remove on clean/clobber
  180. #
  181. MAN    =/usr/local/man
  182.  
  183. MANAPPS    = man1
  184. MANSYS    = man1
  185. MANFILES= man4
  186.  
  187. NROFF    = groff -Tascii
  188. COMPRESS= compress
  189.  
  190. MANCAPP    = ${CLIENTAPPS}
  191. MANCFILE= ${CLIENTFILES}
  192. MANSAPP    = ${SERVERAPPS}
  193. MANSFILE= ${SERVERFILES}
  194. PAGEDIRT=
  195.  
  196. # programs used during installation
  197. ECHO=    echo
  198. FTR=    /usr/sbin/ftr
  199. GREP=    grep
  200. RM=    rm
  201. KILLALL=killall
  202. PWD=    pwd
  203. CHROOT=    /etc/chroot
  204.  
  205. #
  206. # Definitions used by common rules.
  207. #
  208. COMMONRULES=${DEPTH}/rules
  209. COMMONTARGS= clobber clean rmtargets depend incdepend
  210.  
  211. #
  212. # C compiler flags are composed of variable (set on the command line),
  213. # local (defined in the makefile), and global (defined in this file)
  214. # parts, in that order.  This ordering is used so that variable or
  215. # locally specified include directories are searched before the globally
  216. # specified ones.
  217. #
  218. CFLAGS=    ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
  219.  
  220. VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
  221. LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
  222. GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
  223.  
  224. COPTS=    ${VCOPTS} ${LCOPTS} ${GCOPTS}
  225. CDEFS=    ${VCDEFS} ${LCDEFS} ${GCDEFS}
  226. CINCS=    ${VCINCS} ${LCINCS} ${GCINCS}
  227.  
  228. GCOPTS=${OPTIMIZER} ${PROTOTYPES}
  229. GCDEFS=-Dsco
  230. GCINCS=    -I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${TIFF}
  231. #
  232. # C++ flags are decomposed using the same hierarchy as C flags.
  233. #
  234. C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
  235.  
  236. VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
  237. LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
  238. GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
  239.  
  240. C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
  241. C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
  242. C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
  243.  
  244. GC++OPTS=${OPTIMIZER}
  245. GC++INCS=-I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${IV} -I${TIFF}
  246. GC++DEFS=-Dsco
  247.  
  248. #
  249. # Loader flags, composed of library (-l's) and option parts, with
  250. # the libraries appearing last.  Both of these are divided into variable,
  251. # local, and global parts.  The composition of LDFLAGS is done in the
  252. # other "direction" from CFLAGS so that all the -L's, that are part of
  253. # LDOPTS, appear before any of the -l's, which are part of LDLIBS.
  254. # Another benefit of segregating the libraries from the remaining of the
  255. # loader options is that the libraries alone can easily be given to
  256. # another program, e.g., lint.
  257. #
  258. # Notes:
  259. #   - If a program should not be linked with the shared version of libc,
  260. #     then its make file should override the setting of SHDLIBC with a
  261. #     line such as "SHDLIBC=".
  262. #
  263. LDFLAGS=${LDOPTS} ${LDLIBS}
  264.  
  265. LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
  266. LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
  267.  
  268. GLDOPTS=
  269. GLDLIBS=${SHDLIBC}
  270.  
  271. #
  272. # Convenient command macros that include the flags macros.
  273. #
  274. C++F=    ${C++} ${C++FLAGS}
  275. CCF=    ${CC} ${CFLAGS}
  276.  
  277. #
  278. # Shell script for generating make dependencies.  MKDEPEND is a shorthand
  279. # for the tool's absolute pathname.  MKDEPENDC adds MKDEPCFLAGS and the -c
  280. # mkdepend option to this.  The other language's mkdepend variables try to
  281. # include their language's name in the variable names.  Unfortunately, a
  282. # lot of makefiles already use the nondescript LMKDEPFLAGS for C language
  283. # mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
  284. #
  285. MKDEPENDC++    =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
  286. MKDEPENDC    =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
  287.  
  288. MKDEPC++FLAGS    =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
  289. MKDEPCFLAGS    =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
  290. LMKDEPCFLAGS    =${LMKDEPFLAGS}
  291.  
  292. GMKDEPFLAGS    =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
  293. GMKDEPC++FLAGS    =${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @'
  294. GMKDEPCFLAGS    =${GMKDEPFLAGS}
  295.  
  296. #
  297. # Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
  298. # single-source programs using null suffix rules (e.g., .c:}.  This option
  299. # works for both C and C++ make depend.
  300. #
  301. NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
  302. #
  303. # MKDEPFILE is the name of the dependency database, included by rules.
  304. #
  305. MKDEPFILE=Makedepend
  306. #
  307. # CDEPFILES lists all C or cc-compiled source files that depend on header
  308. # files computable by ${MKDEPENDC}.  C++DEPFILES lists all C++ files having
  309. # dependencies computable by ${MKDEPENDC++}.
  310. #
  311. C++DEPFILES=${C++FILES}
  312. CDEPFILES=${CFILES}
  313. DEPFILES=${C++DEPFILES} ${CDEPFILES}
  314.  
  315. #
  316. # Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
  317. #
  318. INCLDIR    =/usr/local/lib/g++-include
  319.